package com.fatjay.gettop;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class GetTOP10Activity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button mButton = (Button)findViewById(R.id.top);
        mButton.setOnClickListener(this);
        Button mButton1 = (Button)findViewById(R.id.all);
        mButton1.setOnClickListener(this);
    }

	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		Intent mIntent = new Intent();
		switch (arg0.getId()) {
		case R.id.all:
			mIntent.setClass(GetTOP10Activity.this, allBoard.class);
			break;
		case R.id.top:
			mIntent.setClass(GetTOP10Activity.this, top.class);
			break;
		}
		GetTOP10Activity.this.startActivity(mIntent);
	}
}